package top.ljlgithub.api.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import top.ljlgithub.api.bean.User;

import java.util.List;

/**
 * @ClassName
 * @Description TODO
 * @Author L1470
 * @Date 2021/4/27 16:11
 * @Version 1.0
 **/
@Mapper
@Component
public interface UserMapper {
    //1.分页查询用户
    List<User> findUser(String query,Integer startIndex,Integer pagesize);
    //2.获取总记录数
    Integer getTotal(String query);
}
